<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>服务商小区权限列表</title>
		<link rel="stylesheet" type="text/css" href="css/public.css" />
		<link rel="stylesheet" href="bootstrap/dist/css/bootstrap.min.css">
		<link rel="stylesheet" href="css/font-awesome.min.css">
		<link rel="stylesheet" href="css/ionicons.min.css">
		<link rel="stylesheet" href="css/AdminLTE.min.css">
		<link rel="stylesheet" href="dist/css/skins/_all-skins.min.css">
		<link rel="stylesheet" type="text/css" href="css/bootstrap-datetimepicker.min.css" />
		<link rel="stylesheet" type="text/css" href="css/public_main.css" />
		<link rel="stylesheet" type="text/css" href="css/fileinput.min.css" />
		<style type="text/css">
			body #select_zhanwei {
				display: inline-block;
				/*margin-top: 5px;*/
				width: 120px;
				height: 34px;
			}
			
			#search_chaxun {
				/*margin-top: 10px;*/
				margin-left: 30px;
			}
			
			body #tbbb .btn {
				padding: 0;
				cursor: default;
			}
			
			body #select_type {
				display: inline-block;
				/*margin-top: 5px;*/
				width: 120px;
				height: 34px;
				margin-left: 10px;
			}
			
			#search_chaxun {
				/*margin-top: 10px;*/
				margin-left: 10px;
			}
			
			#text_sousuo {
				margin-left: 20px;
			}
		</style>

	</head>

	<body>
		<div class="box">
			<div class="box-header with-border">
				<h3 class="box-title">展位审核记录</h3>
			</div>

			<div id="mohu" class="clear">
				<div id="star_time" class="form-group">
					<label for="dtp_input2" class=" control-label">开始时间</label>
					<div class="input-group date form_date " data-date="" data-date-format="yyyy-mm-dd" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
						<input id="datepicker" placeholder="请选择开始时间" onchange="gaibian()" class="form-control input_1" size="16" type="text" value="" readonly>
						<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
						<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>

						<input type="hidden" id="dtp_input2" value="" />
					</div>
				</div>
				<div id="end_time" class="form-group">
					<label for="dtp_input2" class="control-label">结束时间</label>
					<div class="input-group date form_date2 " data-date="" data-date-format="yyyy-mm-dd" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
						<input class="form-control input_2" placeholder="请选择结束时间" size="16" type="text" value="" readonly>
						<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
						<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>

						<input type="hidden" id="dtp_input2" value="" />
					</div>
				</div>
				<label for="name">选择状态</label>
				<!--<s>选择状态</s>-->
				<select id="select_type" style="display: inline-block;" class="form-control">
					<option>待审核</option>
					<option>审核通过</option>
					<option>审核不通过</option>
					<option>全部</option>
					<option>默认广告</option>

				</select>
				<input type="text" name="" id="text_sousuo" value="" placeholder="请输入需要查询的内容" />
				<button id="search_chaxun" type="button" class="btn btn-success">搜索</button>

			</div>
			<!--<div style="margin-top:0px;margin-left: 20px;" class="my_feilei">

			</div>-->
			<!-- /.box-header -->
			<div class="box-body">
				<table class="table table-bordered">
					<tr>
						<th>序号</th>
						<th>商户名称</th>
						<th>展位位置</th>
						<th>展位标题</th>
						<th>创建人姓名</th>
						<th>创建时间</th>
						<th>价格</th>
						<th>审核状态</th>
						<th>操作</th>
					</tr>
					<tbody id="tbbb">
						<tr>
							<td>1.</td>
							<th>正在加载数据...</th>
							<th>正在加载数据...</th>
							<th>正在加载数据...</th>
							<th>正在加载数据...</th>
							<th>正在加载数据...</th>
							<th>正在加载数据...</th>
							<th>正在加载数据...</th>
							<th>正在加载数据...</th>
						</tr>
					</tbody>

				</table>
			</div>
			<!-- /.box-body -->
			<div class="box-footer clearfix">
				<div>
					<s style="margin-top: 5px;">共有：</s> <span id="count"></span><s>条,每页显示10条</s>
				</div>
				<ul id='bp-3-element-test'>
				</ul>
			</div>
		</div>

		<!-- 模态框（Modal） -->
		<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel"></h4>
					</div>
					<div id="shenhe" class="modal-body">
						<ul id="myTab" class="nav nav-tabs">
							<li class="active">
								<a href="#home" data-toggle="tab">
									基础信息
								</a>
							</li>
							<li>
								<a href="#fix" data-toggle="tab">
									广告位信息
								</a>
							</li>
							<li>
								<a href="#zizhi" data-toggle="tab">
									广告图片
								</a>
							</li>
							<li>
								<a href="#zhuce" data-toggle="tab">
									审核批注
								</a>
							</li>

						</ul>
						<ul id="ppp">
							<div id="myTabContent" class="tab-content">
								<div class=" tab-pane fade in active" id="home">
									<li>
										<span>商户名称:</span><s id="s_name"></s>
									</li>
									<li>
										<span>创建人姓名:</span><s id="s_creat"></s>
									</li>
									<li>
										<span>创建时间:</span><s id="s_cr_time"></s>
									</li>
									<!--<li>
										<span>修改人姓名:</span><s id="s_up_name"></s>
									</li>
									<li>
										<span>修改时间:</span><s id="s_up_time"></s>
									</li>-->
									<li>
										<span>审核状态:</span><s id="s_up_shenhe"></s>
									</li>
								</div>
								<div class="tab-pane fade" id="fix">
									<li>
										<span>展位位置:</span><s id="s_weizhi"></s>
									</li>
									<li>
										<span>展位标题:</span><s id="s_biaoti"></s>
									</li>
									<li>
										<span>价格:</span><s id="s_jiage"></s>
									</li>
									<!--<li>
									<span>修改人名字:</span><s id="s_up_name"></s>
									</li>-->
									<li>
										<span>广告url:</span><s id="s_url"></s>
									</li>
									<!--<li>
									<span>广告价格:</span><s id="s_up_prise"></s>
									</li>-->
									<li>
										<span>广告单价:</span><s id="s_up_danjia"></s>
									</li>
									<li>
										<span>广告时段:</span><s id="s_up_shiduan"></s>
									</li>

								</div>
								<div class="tab-pane fade" id="zhuce">
									<li>
										<span>审核批注:</span>
										<textarea style="display: block;" id="s_xiangqing" name="" rows="5" cols="60"></textarea>
									</li>
								</div>
								<div class="tab-pane fade" id="zizhi">
									<li style="display: none;">
										<span>id:</span><s id="s_id"></s>
									</li>
									<li>
										<span>广告图片:</span><img data-action="zoom" id="s_up_img" src="" />
									</li>

								</div>

							</div>

						</ul>
					</div>
					<div class="modal-footer">
						<div class="modal-footer">
							<div class="shenhe_no">
								<button type="button" class="btn btn-danger shnehe_nopass">审核不通过</button>
								<button type="button" class="btn btn-success shnehe_pass">审核通过</button>
							</div>
							<div class="wuxushenhe">
								<button type="button" class="btn btn-default fanhui" data-dismiss="modal">返回</button>
							</div>
							<div class="fix">
								<button type="button" class="btn btn-success fix_fix">修改</button>
								<button type="button" class="btn btn-default fanhui" data-dismiss="modal">返回</button>
							</div>

						</div>
					</div>

				</div>
			</div>
		</div>
		<div class="modal fade" id="myModal_fix" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel">修改默认广告</h4>
					</div>
					<div id="shenhe" class="modal-body">
						<ul id="ppp">
							<li>
								<span>广告标题:</span><input id="fix_title">
							</li>
							<li>
								<span>链接地址:</span><input id="fix_url">
							</li>
							<form style="" id="Form1" action="http://www.wkdzkj.cn/woke-oss-web/woke/public/addServiceProviderQualifications" method="post" enctype="multipart/form-data" onsubmit="return saveReport();" target="hidden_frame">
								<input id="uploadfile" name="pic" type="file" class="file">
							</form>
						</ul>
					</div>
					<div class="modal-footer">
						<div class="modal-footer">
							<div class="sure">
								<button type="button" class="btn btn-success sure_fix">确定</button>
								<button type="button" class="btn btn-default fanhui" data-dismiss="modal">返回</button>
							</div>

						</div>
					</div>

				</div>
			</div>
		</div>
	</body>

</html>
<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="bootstrap/dist/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.slimscroll.min.js"></script>
<script src="js/fastclick.js"></script>
<script src="dist/js/adminlte.min.js"></script>
<script src="dist/js/demo.js"></script>
<script src="js/qunit-1.11.0.js" type="text/javascript" charset="utf-8"></script>
<script src="js/bootstrap-paginator.js" type="text/javascript" charset="utf-8"></script>
<script src="js/bootstrap-datetimepicker.js" type="text/javascript" charset="utf-8"></script>
<script src="js/bootstrap-datetimepicker.zh-CN.js" type="text/javascript" charset="utf-8"></script>
<script src="js/zooming.js" type="text/javascript" charset="utf-8"></script>
<script src="js/zhanwei_audit.js" type="text/javascript" charset="utf-8"></script>
<script src="js/data.js" type="text/javascript" charset="utf-8"></script>
<script src="js/fileinput.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/zh.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	$("#uploadfile").fileinput({
		language: 'zh', //设置语言
		uploadUrl:urltest + 'woke/public/addServiceProviderQualifications', //上传的地址 "http://smart.wkdzkj.cn/woke-oss-web/woke/public/addServiceProviderQualifications", //上传的地址
		allowedFileExtensions: ['jpg', 'png', 'gif'], //接收的文件后缀
		//uploadExtraData:{"id": 1, "fileName":'123.mp3'},
		uploadAsync: true, //默认异步上传
		showUpload: true, //是否显示上传按钮
		showRemove: true, //显示移除按钮
		showPreview: true, //是否显示预览
		showCaption: false, //是否显示标题
		browseClass: "btn btn-primary", //按钮样式    
		dropZoneEnabled: true, //是否显示拖拽区域
		//minImageWidth: 50, //图片的最小宽度
		//minImageHeight: 50,//图片的最小高度
		//maxImageWidth: 1000,//图片的最大宽度
		//maxImageHeight: 1000,//图片的最大高度
		maxFileSize:1000,//单位为kb，如果为0表示不限制文件大小
		//minFileCount: 0,
		maxFileCount: 1, //表示允许同时上传的最大文件个数
		enctype: 'multipart/form-data',
		validateInitialCount: true,
		previewFileIcon: "<iclass='glyphicon glyphicon-king'></i>",
		msgFilesTooMany: "选择上传的文件数量({n}) 超过允许的最大数值{m}！",
	}).on("fileuploaded", function(event, data, previewId, index) {
		//	debugger
		//	console.log(data.response);
		var url1 = data.response.returnString;
		var bb = JSON.parse(url1);
		urlo =  bb[0].url;
		console.log(urlo);
//		debugger
//		$(".te_img_xianshi").show()
//		$("#ss1_img").attr("src",urlo);
//		$("#ss2_img").attr("src",urlo);
//		$("#ss3_img").attr("src",urlo);
		
	});
</script>